#include <iostream>
#include <vector>
using namespace std;

/*
 *先转换成前缀和
 * */

int proc2(vector<long long> &sums, int l, int r, int lower, int upper) {
  if (l == r) {
    if (sums[l] >= lower && sums[r] <= upper) {
      return 1;
    } else {
      return 0;
    }
  }

  
}

int proc(vector<int> &nums, int lower, int upper) {
  vector<long long> sums;
  sums.resize(nums.size());
  sums[0] = nums[0];
  for (int i = 1; i < nums.size(); ++i) {
    sums[i] = sums[i - 1] + nums[i];
  }
}

int main() {}
